﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Engine.FileReaders
{
    abstract class PlainTextReaderBase
    {

        /// <summary>
        /// 
        /// </summary>
        /// <param name="Path"></param>
        /// <returns></returns>
        public StreamReader Read(string Path, char delimiter)
        {
            if (!System.IO.File.Exists(Path))
                throw new FileNotFoundException("File doesn't exists", Path);
            return new StreamReader(Path, true);
        }
    }
}
